package org.eiahe.hr.attendance.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.ehe.common.mybatis.core.domain.BaseEntity;

import java.io.Serial;
import java.time.LocalDate;

/**
 * 员工考勤类型对象 hr_employee_attendance_type
 *
 * @author zhangnn
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hr_employee_attendance_type")
public class EmployeeAttendanceType extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 员工考勤类型ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 工号
     */
    private String employeeNo;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 考勤类型ID
     */
    private Long typeId;

    /**
     * 生效日期
     */
    private LocalDate effectiveDate;

    /**
     * 失效日期(NULL表示永久有效)
     */
    private LocalDate expiryDate;

    /**
     * 状态(0-失效 1-生效)
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

    @TableLogic
    private String delFlag;
}
